<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>IDA SDK: callregs_t Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">IDA SDK
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="files.html"><span>Header&#160;Files</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="classcallregs__t-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">callregs_t Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Register allocation calling convention. </p>
<p>(allocation policy, arrays of GP and FP registers) </p>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a345776a6f548f44dd790ef95d0135a8e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a345776a6f548f44dd790ef95d0135a8e"></a>
<a class="el" href="group__argloc.html#ga1213616e618bb2e2eeef3789c5a3066a">argreg_policy_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcallregs__t.html#a345776a6f548f44dd790ef95d0135a8e">policy</a></td></tr>
<tr class="memdesc:a345776a6f548f44dd790ef95d0135a8e"><td class="mdescLeft">&#160;</td><td class="mdescRight">argument policy <br /></td></tr>
<tr class="separator:a345776a6f548f44dd790ef95d0135a8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd55be3287974aaa431af0ec8c2327c0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acd55be3287974aaa431af0ec8c2327c0"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcallregs__t.html#acd55be3287974aaa431af0ec8c2327c0">nregs</a></td></tr>
<tr class="memdesc:acd55be3287974aaa431af0ec8c2327c0"><td class="mdescLeft">&#160;</td><td class="mdescRight">max number of registers that can be used in a call <br /></td></tr>
<tr class="separator:acd55be3287974aaa431af0ec8c2327c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad872c716a82e26335c0c26dc84c1ed19"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad872c716a82e26335c0c26dc84c1ed19"></a>
<a class="el" href="pro_8h.html#a16a891be237a47eac68383da2ebc2fa6">intvec_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcallregs__t.html#ad872c716a82e26335c0c26dc84c1ed19">gpregs</a></td></tr>
<tr class="memdesc:ad872c716a82e26335c0c26dc84c1ed19"><td class="mdescLeft">&#160;</td><td class="mdescRight">array of gp registers <br /></td></tr>
<tr class="separator:ad872c716a82e26335c0c26dc84c1ed19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab978c10c5f46216c1b5eaeb3fdcc70a0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab978c10c5f46216c1b5eaeb3fdcc70a0"></a>
<a class="el" href="pro_8h.html#a16a891be237a47eac68383da2ebc2fa6">intvec_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcallregs__t.html#ab978c10c5f46216c1b5eaeb3fdcc70a0">fpregs</a></td></tr>
<tr class="memdesc:ab978c10c5f46216c1b5eaeb3fdcc70a0"><td class="mdescLeft">&#160;</td><td class="mdescRight">array of fp registers <br /></td></tr>
<tr class="separator:ab978c10c5f46216c1b5eaeb3fdcc70a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aea175de26ac293f6523b9256728e3452"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aea175de26ac293f6523b9256728e3452"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcallregs__t.html#aea175de26ac293f6523b9256728e3452">callregs_t</a> ()</td></tr>
<tr class="memdesc:aea175de26ac293f6523b9256728e3452"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:aea175de26ac293f6523b9256728e3452"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6cbf70498c035226bd920eafb69209cc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6cbf70498c035226bd920eafb69209cc"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcallregs__t.html#a6cbf70498c035226bd920eafb69209cc">callregs_t</a> (<a class="el" href="ida_8hpp.html#a3e05fd8860fadc8f72329fc410c8f6b9">cm_t</a> cc)</td></tr>
<tr class="memdesc:a6cbf70498c035226bd920eafb69209cc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor - initialize with the given request (see <a class="el" href="classcallregs__t.html#a75649fda5329dce03dfe7011e27420a7" title="Init policy & registers for given CC. ">init_regs()</a>) <br /></td></tr>
<tr class="separator:a6cbf70498c035226bd920eafb69209cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75649fda5329dce03dfe7011e27420a7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a75649fda5329dce03dfe7011e27420a7"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcallregs__t.html#a75649fda5329dce03dfe7011e27420a7">init_regs</a> (<a class="el" href="ida_8hpp.html#a3e05fd8860fadc8f72329fc410c8f6b9">cm_t</a> cc)</td></tr>
<tr class="memdesc:a75649fda5329dce03dfe7011e27420a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Init policy &amp; registers for given CC. <br /></td></tr>
<tr class="separator:a75649fda5329dce03dfe7011e27420a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86bb75da7958e0636171f0fbcd3c64ec"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a86bb75da7958e0636171f0fbcd3c64ec"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcallregs__t.html#a86bb75da7958e0636171f0fbcd3c64ec">set</a> (<a class="el" href="group__argloc.html#ga1213616e618bb2e2eeef3789c5a3066a">argreg_policy_t</a> _policy, const int *gprs, const int *fprs)</td></tr>
<tr class="memdesc:a86bb75da7958e0636171f0fbcd3c64ec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Init policy &amp; registers (arrays are -1-terminated) <br /></td></tr>
<tr class="separator:a86bb75da7958e0636171f0fbcd3c64ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a586253a7f82bcf6893013d498cffaff3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a586253a7f82bcf6893013d498cffaff3"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcallregs__t.html#a586253a7f82bcf6893013d498cffaff3">reset</a> ()</td></tr>
<tr class="memdesc:a586253a7f82bcf6893013d498cffaff3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set policy and registers to invalid values. <br /></td></tr>
<tr class="separator:a586253a7f82bcf6893013d498cffaff3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff12d7905c3ca7a8bd9c586a8f32cd66"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcallregs__t.html#aff12d7905c3ca7a8bd9c586a8f32cd66">reginds</a> (int *gp_ind, int *fp_ind, int r) const </td></tr>
<tr class="memdesc:aff12d7905c3ca7a8bd9c586a8f32cd66"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get register indexes within GP/FP arrays.  <a href="#aff12d7905c3ca7a8bd9c586a8f32cd66">More...</a><br /></td></tr>
<tr class="separator:aff12d7905c3ca7a8bd9c586a8f32cd66"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:aa4d436a745c4746532d3692bc2c5d5d2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa4d436a745c4746532d3692bc2c5d5d2"></a>
static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcallregs__t.html#aa4d436a745c4746532d3692bc2c5d5d2">regcount</a> (<a class="el" href="ida_8hpp.html#a3e05fd8860fadc8f72329fc410c8f6b9">cm_t</a> cc)</td></tr>
<tr class="memdesc:aa4d436a745c4746532d3692bc2c5d5d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get max number of registers may be used in a function call. <br /></td></tr>
<tr class="separator:aa4d436a745c4746532d3692bc2c5d5d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45f967e27e7d8ba1830ed98b08242184"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a45f967e27e7d8ba1830ed98b08242184"></a>
static int&#160;</td><td class="memItemRight" valign="bottom"><b>findreg</b> (const <a class="el" href="pro_8h.html#a16a891be237a47eac68383da2ebc2fa6">intvec_t</a> &amp;regs, int r)</td></tr>
<tr class="separator:a45f967e27e7d8ba1830ed98b08242184"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:aea6fb78ee5c0177a9528951f3090bcb5"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcallregs__t.html#aea6fb78ee5c0177a9528951f3090bcb5">findregs</a> (int *gp_ind, int *fp_ind, int r, const <a class="el" href="pro_8h.html#a16a891be237a47eac68383da2ebc2fa6">intvec_t</a> &amp;gprs, const <a class="el" href="pro_8h.html#a16a891be237a47eac68383da2ebc2fa6">intvec_t</a> &amp;fprs) const </td></tr>
<tr class="memdesc:aea6fb78ee5c0177a9528951f3090bcb5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Search for register r in gprs and fprs.  <a href="#aea6fb78ee5c0177a9528951f3090bcb5">More...</a><br /></td></tr>
<tr class="separator:aea6fb78ee5c0177a9528951f3090bcb5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="aff12d7905c3ca7a8bd9c586a8f32cd66"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool callregs_t::reginds </td>
          <td>(</td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>gp_ind</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>fp_ind</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>r</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get register indexes within GP/FP arrays. </p>
<p>(-1 -&gt; is not present in the corresponding array) </p>

</div>
</div>
<a class="anchor" id="aea6fb78ee5c0177a9528951f3090bcb5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool callregs_t::findregs </td>
          <td>(</td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>gp_ind</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int *&#160;</td>
          <td class="paramname"><em>fp_ind</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="pro_8h.html#a16a891be237a47eac68383da2ebc2fa6">intvec_t</a> &amp;&#160;</td>
          <td class="paramname"><em>gprs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="pro_8h.html#a16a891be237a47eac68383da2ebc2fa6">intvec_t</a> &amp;&#160;</td>
          <td class="paramname"><em>fprs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Search for register r in gprs and fprs. </p>
<p>If found, fill gp_ind and fp_ind based on <a class="el" href="classcallregs__t.html#a345776a6f548f44dd790ef95d0135a8e" title="argument policy ">policy</a> </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="typeinf_8hpp.html">typeinf.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
